<?php

declare (strict_types = 1);

namespace app\adminapi\validate;

use think\Validate;

class ArticleCateValidate extends Validate
{
    protected $rule = [
        'pid'  => 'require',
        'cate_name'  => 'require|max:32',
    ];

    protected $message = [
        'pid.require' => '父级ID不能为空',
        'cate_name.require' => '文章分类名称不能为空',
        'cate_name.max' => '文章分类名称不能超过32个字符'
    ];

}